﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BAL;
using Common;
using Entity;
using System.Web.UI.HtmlControls;
namespace Web
{
    public partial class OperationLog : System.Web.UI.Page
    {
        protected string LogList = "";
        protected QuestionInfo QInfo = new QuestionInfo();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!UserValidate.CheckLogin(base.Request, "LookLog"))
            {
                Response.Write("<script type=\"text/javascript\">top.location.href='login.aspx';</script>");
                Response.Redirect("login.aspx");
                Response.End();
            }
            int id = 0;
            if (PageValidate.QueryStringIsEmpty("QuestionId"))
            {
                Utility.ShowJsAlertAndCloseRefresh("一般系统保护性错误", this);
            }
            else if (!PageValidate.IsNumber(PageValidate.QueryString("QuestionId")))
            {
                Utility.ShowJsAlertAndCloseRefresh("一般系统保护性错误", this);
            }
            else
            {
                id = int.Parse(PageValidate.QueryString("QuestionId"));
            }
            QInfo = Question.GetQuestionInfoById(id);
            LogList = Question.GetLog(QInfo.Remark);
        }
    }
}
